package com.edu.service.impl;

import com.edu.service.BookService;
import org.springframework.stereotype.Service;

/**
 * @Author:mx
 * @Date:2025/11/10-15:52:13
 */

@Service
public class BookServiceImpl implements BookService {

    @Override
    public void addBook() {
        System.out.println("执行了addBook");
    }

    @Override
    public void deleteBook() {
        System.out.println("执行了deleteBook");
    }

    @Override
    public void updateBook() {
        System.out.println("执行了updateBook");
    }

    @Override
    public void selectBook() {
        System.out.println("执行了selectBook");

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public int selectBookById(int bookId) {
        System.out.println("执行了selectBookById："+bookId);
        String str = null;
        System.out.println(str.length());
        return 1;
    }
}
